<?php

Route::group(['middleware' => ['web','auth:admin'], 'prefix' => 'article', 'namespace' => 'Modules\Article\Http\Controllers'], function()
{
//    资源路由
    Route::resource('category', 'CategoryController')->middleware("permission:admin,resource");
});


//content-route
Route::group(['middleware' => ['web','auth:admin'],'prefix'=>'article','namespace'=>"Modules\Article\Http\Controllers"],
function () {
    Route::resource('content', 'ContentController')->middleware("permission:admin,resource");
});
